import request from '@/utils/request'

// 查询靓号记录列表
export function listNiceRecord(query) {
  return request({
    url: '/system/niceRecord/list',
    method: 'get',
    params: query
  })
}

// 查询靓号记录详细
export function getNiceRecord(id) {
  return request({
    url: '/system/niceRecord/' + id,
    method: 'get'
  })
}

// 新增靓号记录
export function addNiceRecord(data) {
  return request({
    url: '/system/niceRecord',
    method: 'post',
    data: data
  })
}

// 修改靓号记录
export function updateNiceRecord(data) {
  return request({
    url: '/system/niceRecord',
    method: 'put',
    data: data
  })
}

// 删除靓号记录
export function delNiceRecord(id) {
  return request({
    url: '/system/niceRecord/' + id,
    method: 'delete'
  })
}
